<style lang="scss">
.demo1 {
  //.z-crud-table__handle-detail {
  //  display: none;
  //}
}
</style>

<template>
  <div class="demo1">
    <z-space vertical>
      <h3>dashboard</h3>
      <p>参照 <outer-link href="http://192.168.1.93:8800/#/warningmangerment">宜兴城管数字执法系统 预警管理</outer-link></p>

      <z-crud-table
          class="z-crud-table--no-search z-crud-table--no-def-action"
          :obj="obj"
          :on-init="obj.onCurdInit"
          :on-delete="obj.onCurdDelete"
          :on-edit="obj.onCurdEdit"
          :add-com="obj.EditCom"
          :detail-com="obj.DetailCom"
          :edit-com="obj.EditCom"
      >
        <template #z-crud-table__actions-beforeend="scope">
          <el-button type="primary" @click="scope.table__add">新增预警</el-button>
        </template>
      </z-crud-table>

    </z-space>
  </div>
</template>

<script>
import OuterLink from "@example/plugins/example/components/OuterLink";
import {obj} from "./demo1.jsx";

export default {
  components: {OuterLink},
  setup() {
    return {
      obj
    }
  }
}
</script>
